package common;

import java.util.Date;
import java.util.List;

public final class Message implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long senderId;
	private Date time;
	private List<MessageElement> message;
	
	public Message(){
		
	}
	
	public Message(long id){
		this.senderId = id;
		time = new Date();
	}

	public void setSenderId(long senderId) {
		this.senderId = senderId;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public long getSenderId() {
		return senderId;
	}

	public Date getTime() {
		return time;
	}

	public List<MessageElement> getMessage() {
		return message;
	}

	public void setMessage(List<MessageElement> message) {
		this.message = message;
	}
	
	
}
